/*
* created by Administrator on 2018/12/11
* 好的代码像粥一样,是得用时间和精力熬的。
*/
import request from './request';
//登录
const login = (data) => {
  return request.post('/login', data);
};
//注册
const reg = (data) => {
  return request.get('/reg',{params: data});
};
//获取首页数据
const getIndexData = (data) => {
  return request.post('/index', data);
};
export default {login, reg };
